<%inherit file="base.html"/>
<h2>${_('System Information')}</h2>
<div id="tabNav">
    <ul>
        <li><a href="http://admin.hexlabel.net/">${_('Info')}</a></li>
        <li class="selected"><a href="http://admin.hexlabel.net/recovery_code/">${_('Recovery code')}</a></li>
    </ul>
    <div class="clr"><br/></div>
</div>
<div class="section" id="info">
    <h3>${_('Recovery code')}</h3>
    % if errors:
        <div class="alert">${message}</div>
    % endif

    % if errors or not code:
        % if recovery_code:
            <p class="intro">
                ${_('You can use a Recovery Code to activate your Peerscape profile on another computer.')}
		<br/><br/>
		${_('You have a Recovery Code:')}
            </p>
            <p class="recoveryCode">${recovery_code}</p>
            <p>${_('Create a new Recovery Code with an optional passphrase:')}</p>
        % else:
            <p class="intro">
                ${_('You can use a Recovery Code to activate your Peerscape profile on another computer.')}<br/>
                <em>${('You have not yet created a Recovery Code.')}</em>
            </p>
            <p>${_('Create a Recovery Code with an optional passphrase (you can just leave it blank):')}</p>
        % endif
        

        <form id="recoveryCodeForm" method="post" action="http://admin.hexlabel.net/recovery_code/">
            <dl class="single">
                <dt><label for="passphrase">${_('Passphrase')}</label></dt>
                <dd>
                    <input type="password" class="text" name="passphrase" id="passphrase"/>
                </dd>
                <dt><label for="passphrase_confirm">${_('Passphrase confirm')}</label></dt>
                <dd>
                    <input type="password" class="text" name="passphrase_confirm" id="passphrase_confirm"/>
                </dd>
            </dl>
            <dl>
                <dd class="buttons">
                    <input type="submit" class="submit default" value="${_('Submit')}"/>
                </dd>
                <dd class="buttons cancel">
                    <a href="http://admin.hexlabel.net/" class="button">${_('Cancel')}</a>
                </dd>
            </dl>
            <div class="clr"><br/></div>
        </form>
    % else:
        <p class="intro">${_('Your Recovery Code has been created:')}</p>
        <p class="recoveryCode">${code}</p>
        <p>${_('You should save a copy of this in a safe place for use in activating your profile on another computer.')}</p>
        <p>${_('(You will also need your passphrase if you specified one.)')}</p>
    %endif
</div>

<!-- defs -->
<%def name="title()">P2P Fusion - Peerscape | ${_('Peerscape System')} | ${_('Recovery code')}</%def>
<%def name="body_class()">
    admin self
</%def>
<%def name="toplinks_style()">
</%def>

